package com.example.repair.api

import com.example.common.view.api.BaseApiService
import com.example.repair.entity.RepairEntityItem
import com.example.repair.entity.RepairParam
import com.example.repair.model.RepairResultData
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface RepairApiService :BaseApiService{
    //添加物业报修
    @POST ("/api/repair-orders")
    suspend fun postRepair(@Body repairParam: RepairParam):RepairResultData<RepairEntityItem>
    //获取报修列表
    @GET ("/api/repair-orders")
    suspend fun getRepair():RepairResultData<List<RepairEntityItem>>
}